from django.conf.urls import patterns, include, url

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
	# Examples:
	# url(r'^$', 'NasiChulsi.views.home', name='home'),
	 url(r'^api/', include('bazy.api.api_urls')),
	
	url(r'^$', 'bazy.views.index'),
	url(r'^login/(?P<from_url>(\.*))', 'bazy.views.login'),
	url(r'^index/', 'bazy.views.index'),
	url(r'^/', 'bazy.views.index'),
	url(r'^logout/(?P<from_url>(\.*))', 'bazy.views.logout'),
	url(r'^users/show/all', 'bazy.views.showAllUsers'),
	url(r'^hools/show/all', 'bazy.views.showAllHools'),
	url(r'^hools/show/(?P<hool_id>(\d.*))', 'bazy.views.showHooligan'),
	url(r'^hools/edit/(?P<hool_id>(\d.*))', 'bazy.views.editHooligan'),
	url(r'^hools/crop/(?P<hool_id>(\d.*))', 'bazy.views.cropHooliganImage'),
	url(r'^events/show/all', 'bazy.views.showAllEvents'),
	url(r'^events/show/(?P<event_id>(\d))', 'bazy.views.showEvent'),
	url(r'^offense/show/all', 'bazy.views.showAllOffense'),
	url(r'^mobile/', 'bazy.views.mobile'),
	# Uncomment the admin/doc line below to enable admin documentation:
	# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

	# Uncomment the next line to enable the admin:
	# url(r'^admin/', include(admin.site.urls)),
)
